<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:39:"./views/home/mobile/invite\silver.phtml";i:1626708606;s:67:"E:\Web\test.zztuku.com\public\views\home\mobile\common\header.phtml";i:1541935408;}*/ ?>
﻿<!DOCTYPE HTML>
<html>

    <head>
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>师徒记录</title>
        <link rel="shortcut icon" href="clientapp/images/new_images/favicon.ico" />
<link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css" />
<link href="/static/home/mobile/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
<link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />
<!-- 弹出层 -->
<link rel="stylesheet" href="/static/plugins/dialog/css/dialog.css" />
<script src="/static/home/mobile/js/jquery-2.0.3.min.js"></script>
<script src="/static/plugins/dialog/js/dialog.js"></script>
<!-- 弹出层 -->
<script type="text/javascript" src="/static/plugins/clipboard.min.js"></script>
<script type="text/javascript" src="/static/home/mobile/js/global.js?v=2"></script>
        <link rel="shortcut icon" href="clientapp/images/new_images/favicon.ico" />
        <link href="/static/home/mobile/css/reset_5.css" rel="stylesheet" type="text/css" />
        <link href="/static/home/mobile/css/style.css" rel="stylesheet" type="text/css" />
        <link href="/static/home/mobile/css/new_style.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="/static/home/mobile/css/font-awesome.min.css">
        <link rel="stylesheet" href="/static/home/mobile/css/new_page.css">
        <link rel="stylesheet" href="/static/home/mobile/css/layui.css">
        <style type="text/css">
        .mx_list li {
            min-height: 26px;
            line-height: 26px;
            height:60px;
            font-size:14px;
        }
        #flow li p{
            width: 80%;
        }
        #flow li p img{
            float: left;
            border-radius: 6px;
        }
        #flow li p span.title{
            float: left;
            font-size: 14px;
            margin-top: -20px;
            color: #333;
            margin-left: 10px;
        }
        #flow li p .time{
            width: 200px;
            display: inline-block;
            text-align: left;
            color: #999;
            font-size: 1.0rem;
            margin-left: 10px;
            vertical-align: middle;
        }
        #flow li  i{
            float: right;
            margin-top: -84px;
            color: red;
            height:0px;
        }
        #flow li  i:nth-child(2){
        	margin-top: -30px;
        }
        body{background:#0f0f0f;color:#fff;}
        .mx_list{background:#333;}
        .mx_list li:after{background-image: -webkit-linear-gradient(bottom,#444,#444 60%,transparent 60%);}
        #flow li i{color:#dde1ef}
        </style>
    </head>
    <body>
        <header class="site-header header-fixed">
            <a onclick="window.history.back();" class="back"></a>
            <div class="tit-name">
                邀请好友
            </div>
        </header>
        

        <div class="mains" style="background:#222;padding:4px;margin-top:47px;">
                        <div style="display:flex;justify-content: space-between;" class="more">
                              <div  style="width:33%;border-right:1px solid #444;">
                                  <div style="">
                                  <div onclick="location.href='/home/invite/silver/type/1' "  style="font-size:16px;height:24px;line-height:24px;width:100%;text-align: center;<?php if($type == 1): ?>color:#2254F4;<?php endif; ?>">
                                	一级

                                  </div>
                                  <div onclick="location.href='/home/invite/silver/type/1' "  style="font-size:14px;height:24px;line-height:24px;width:100%;text-align: center;<?php if($type == 1): ?>color:#2254F4;<?php endif; ?>">
                                           <?php echo $down; ?>
                                                </div>

                                </div>


                          </div>

                           <div  style="width:33%;">
                                  <div style="">
                                  <div onclick="location.href='/home/invite/silver/type/2' "   style="font-size:16px;height:24px;line-height:24px;width:100%;text-align: center;<?php if($type == 2): ?>color:#2254F4;<?php endif; ?>">
                           
                                	二级

                                  </div>
                                  <div  onclick="location.href='/home/invite/silver/type/2' "  style="font-size:14px;height:24px;line-height:24px;width:100%;text-align: center;<?php if($type == 2): ?>color:#2254F4;<?php endif; ?>">
                                            <?php echo $grandson; ?>                               </div>
                                           
                                </div>
                          </div>
                           <div  style="width:33%;">
                                  <div style="">
                                  <div onclick="location.href='/home/invite/silver/type/3' "   style="font-size:16px;height:24px;line-height:24px;width:100%;text-align: center;<?php if($type == 3): ?>color:#2254F4;<?php endif; ?>">
                           
                                	三级

                                  </div>
                                  <div  onclick="location.href='/home/invite/silver/type/3' "  style="font-size:14px;height:24px;line-height:24px;width:100%;text-align: center;<?php if($type == 3): ?>color:#2254F4;<?php endif; ?>">
                                            <?php echo $parent3; ?>                               </div>
                                           
                                </div>
                          </div>                          

                  </div>
                  
          </div>
          
                  

        
        
        <div class="main inviteList" style="margin-top:0px;">
<!--            <div class="member-tab">-->
<!--                <ul class="add_friend_tab">-->
<!--                    <li>-->
<!--                        <a href="/home/invite.html"> <span>邀请好友</span></a>-->
<!--                    </li>-->
<!--                    <li class="active">-->
<!--                        <span>邀请记录</span>-->
<!--                    </li>-->
<!--                    <li>-->
<!--                        <a href="/home/invite/gold.html"> <span>邀请返利</span></a>-->
<!--                    </li>-->
<!--                </ul>-->
<!--            </div>-->
            <div class="update-box mx_list" id="table">
                <ul id="flow">
   
   <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$item): $mod = ($i % 2 );++$i;?>
	   <li>
	   		<p >
	   		<img style='margin-top:8px;'src="<?php echo $item['avatar']; ?>" width='45px' height='45px'>
	   		<span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
	   		<span class='title'><?php echo $item['nickname']; ?></span>
	   		<span  class='time'><?php echo $item['time']; ?></span >
	   		</p>
	   		<i>累计佣金:+<?php echo $item['sum']; ?> </i>
	   		<br/>
	   		<i>UID:<?php echo $item['uid']; ?></i>
   		</li>
   
   <?php endforeach; endif; else: echo "" ;endif; ?>
   
   
   
                </ul>
                <!-- <div class="alipa-box">
                    <div class="task-none" style="display: none;text-align: center;">暂无数据</div>
                </div> -->
            </div>
        </div>
    

<script type="text/javascript" src="/static/home/mobile/js/layui/layui.js"></script>
<script type="text/javascript">
$(function(){
	return;
        //流加载
        layui.use('flow', function(){
            var flow = layui.flow;
            flow.load({
                    elem: '#table'
                    ,done: function(page, next){
                            var lis = [];
                            $.get('/home/invite/silver_ajax?page='+page, function(res){
                                layui.each(res.data, function(index, item){
                                    //$("#flow").append('<li><b><time>'+item.create_time+'</time></b><p>邀请用户：'+item.username+'<span>'+(item.username ? '成功邀请用户：'+item.username+'，编号：'+item.uid : '')+'</span></p>    </li>');
                                    $("#flow").append("<li><p ><img style='margin-top:8px;'src='"+item.avatar+"' width='45px' height='45px'><span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class='title'>"+item.nickname+"</span><span  class='time'>"+item.time+"</span ></p><i>累计佣金:+"+item.jinbi+"</i><br/><i>UID:"+item.uid+"</i></li>");

                                });
                                next(lis.join(''), false);
                            });
                    }
            });
        });
});
</script> 
</body>
</html>